import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as echarts from 'echarts'
import router from './router.js'

const app = createApp(App)

// 使用Element Plus
app.use(ElementPlus)

// 全局注册echarts
app.config.globalProperties.$echarts = echarts

// 使用路由
app.use(router)

app.mount('#app')
